//Domain
//http://120.27.140.51/
//Namespace
//Juse.Interface
//ClassName
//JSShop.BLL.Interface.ProductBrowser
//请勿修改上述接口信息
namespace Juse.Interface
{
    public class ProductBrowser : wnxd.Web.InterfaceBase
    {
        public ProductBrowser()
        {
            this.Domain = "http://120.27.140.51/";
            this.Namespace = "JSShop.BLL.Interface";
            this.ClassName = "ProductBrowser";
        }
        /// <summary>
        /// 获得同类型产品列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Products> GetCommonCatoryList(System.Int32 Top, System.Int32 productId, System.String filedOrders)
        {
            wnxd.javascript.json r = this.Run("826209C881800F15A8ED9BFB6D664D72", Top, productId, filedOrders);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Products>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Products>));
        }
        /// <summary>
        /// 获取商品视图所有数据
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetAllProductView()
        {
            wnxd.javascript.json r = this.GetCache(1800, "9E771EF23A28F250B34E326B378E8921");
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取商品视图所有数据
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetAllProductView(System.String strWhere, System.Int32 top)
        {
            wnxd.javascript.json r = this.Run("9298C518A6B2440A82A4DE6D1FDF4508", strWhere, top);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取商品视图分页信息
        /// </summary>
        public JSShop.Model.DbQueryResultProductAcSku GetPagingProductAcSkus(System.Collections.Generic.Dictionary<System.String, System.String> dic)
        {
            wnxd.javascript.json r = this.Run("BBDB1FB47667C72ABFF533B5D62ADC2D", dic);
            return (JSShop.Model.DbQueryResultProductAcSku)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductAcSku));
        }
        /// <summary>
        /// 获取商品需要保存的数据
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.DbNeedSaveInformation> GetNeedSaveInformation(System.Int32 categoryId)
        {
            wnxd.javascript.json r = this.Run("6A6B7BEAE1D84545BA9A90182D8D59C6", categoryId);
            return (System.Collections.Generic.List<JSShop.Model.DbNeedSaveInformation>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.DbNeedSaveInformation>));
        }
        /// <summary>
        /// 获取RewriteName根据pid
        /// </summary>
        public System.String GetRewriteName(System.Int32 ProductId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "B4F5E3650DD83EBA4B9439EE85DE3EBA", ProductId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 获取ProductRewrite根据pid
        /// </summary>
        public JSShop.Model.ProductRewrite GetProductRewriteModel(System.Int32 ProductId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "8278D6BA2D1EBD49929C3EC520733B05", ProductId);
            return (JSShop.Model.ProductRewrite)r.TryConvert(typeof(JSShop.Model.ProductRewrite));
        }
        /// <summary>
        /// 获取ProductSku列表
        /// </summary>
        public JSShop.Model.DbQueryResultProductSku GetProductSkuList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("95737A19D694A4FAC2A36A8C02D4B96F", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultProductSku)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductSku));
        }
        /// <summary>
        /// 获取ProductSku详情
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.VW_Hishop_ProductSKU> GetProductSku(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("B601585E1D343F5B749AD7B26EFB8640", productId);
            return (System.Collections.Generic.List<JSShop.Model.VW_Hishop_ProductSKU>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.VW_Hishop_ProductSKU>));
        }
        /// <summary>
        /// 获取ProductSku详情
        /// </summary>
        public JSShop.Model.DbQueryResultProductSkuList GetPagingProductSkusList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("CDDD732D62DBE969F5123672744299BA", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultProductSkuList)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductSkuList));
        }
        /// <summary>
        /// 获取指定商品所有促销信息
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Promotions> GetPromotions(System.Int32 ProductId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "19BAEA4CE78DC2DA94E0C0AAACF8F65C", ProductId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Promotions>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Promotions>));
        }
        /// <summary>
        /// 获取指定商品最近促销信息
        /// </summary>
        public JSShop.Model.Hishop_Promotions GetRecentPromotion(System.Int32 ProductId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "5BFA631B4F8D07BA6621E186604CE620", ProductId);
            return (JSShop.Model.Hishop_Promotions)r.TryConvert(typeof(JSShop.Model.Hishop_Promotions));
        }
        /// <summary>
        /// 获取产品试图列表vw_JS_ProductInfo
        /// </summary>
        public System.Collections.Generic.IList<JSShop.Model.vw_JS_ProductInfo> GetProductInfoList(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("837E608FB8CE8311A725B1F109DFEB6F", strWhere);
            return (System.Collections.Generic.IList<JSShop.Model.vw_JS_ProductInfo>)r.TryConvert(typeof(System.Collections.Generic.IList<JSShop.Model.vw_JS_ProductInfo>));
        }
        /// <summary>
        /// 获取当前正在进行的抢购活动
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_CountDown> GetCountDownList()
        {
            wnxd.javascript.json r = this.Run("C9DCC7372D1F3CC48F8BC15CB6F46EEB");
            return (System.Collections.Generic.List<JSShop.Model.Hishop_CountDown>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_CountDown>));
        }
        /// <summary>
        /// 按浏览数获取商品视图列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetRandomProductView(System.Int32 num = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "18BE774D100380F28897221ABF1CAB3C", num);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 按销量获取商品视图列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetProductView(System.Int32 num = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "A661EB981A97DE213942C9F7577BF3FC", num);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 根据商品编码获取商品信息
        /// </summary>
        public JSShop.Model.Hishop_Products GetModelByProductCode(System.String productCode)
        {
            wnxd.javascript.json r = this.Run("3D5AF53F820A4E29D3CB62C78D14F84C", productCode);
            return (JSShop.Model.Hishop_Products)r.TryConvert(typeof(JSShop.Model.Hishop_Products));
        }
        /// <summary>
        /// 获取所有tag
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Tags> GetTagsList()
        {
            wnxd.javascript.json r = this.Run("6AB8B69A7EE5151A7474B3511EA97484");
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Tags>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Tags>));
        }
        /// <summary>
        /// 获取所有商品类型
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypes> GetTypesList()
        {
            wnxd.javascript.json r = this.Run("2D37C6C0B9D84EFAC42000FC28E6E477");
            return (System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypes>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypes>));
        }
        /// <summary>
        /// 根据规格ID获取规格信息
        /// </summary>
        public JSShop.Model.Hishop_SKUs GetSkuModel(System.String skuId)
        {
            wnxd.javascript.json r = this.Run("7D282FFA972958EA4D71BADE1A7B2F2B", skuId);
            return (JSShop.Model.Hishop_SKUs)r.TryConvert(typeof(JSShop.Model.Hishop_SKUs));
        }
        /// <summary>
        /// 获取最大排序号
        /// </summary>
        public System.Int32 GetMaxDisplaysequence()
        {
            wnxd.javascript.json r = this.Run("35CA0A7DA540102792564B24C5D62939");
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 根据属性值ID获取属性信息
        /// </summary>
        public JSShop.Model.Hishop_AttributeValues GetAttributeValueModel(System.Int32 valueId)
        {
            wnxd.javascript.json r = this.Run("66C16765176489DC41A43E3B53B205F3", valueId);
            return (JSShop.Model.Hishop_AttributeValues)r.TryConvert(typeof(JSShop.Model.Hishop_AttributeValues));
        }
        /// <summary>
        /// 添加规格属性值
        /// </summary>
        public System.Int32 SetAttributeValue(JSShop.Model.Hishop_AttributeValues model)
        {
            wnxd.javascript.json r = this.Run("042CDB8FCA4912EAF3BB647C556E7FA7", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_SKUItemAttributeValues> GetSkuItemAttributeValues(System.Int32 typeId)
        {
            wnxd.javascript.json r = this.Run("B065FD79534621EA558994FDD7184E69", typeId);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_SKUItemAttributeValues>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_SKUItemAttributeValues>));
        }
        /// <summary>
        /// 获取商品规格信息
        /// </summary>
        public System.Data.DataSet GetSkuStocks(System.String sql)
        {
            wnxd.javascript.json r = this.Run("6239EA110BC0F36019381A5E1538DDAA", sql);
            return (System.Data.DataSet)r.TryConvert(typeof(System.Data.DataSet));
        }
        /// <summary>
        /// 获取查询条件下所有商品
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Products> GetProductList(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("C152824297C527B7E1957C2C49CCBEF1", strWhere);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Products>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Products>));
        }
        /// <summary>
        /// 根据某个产品读取同类品牌推荐商品列表视图数据
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetSameBrandProducts(JSShop.Model.aspnet_Members usermember, System.Int32 pid, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "501BED4F11E860B96291F646E99A286B", usermember, pid, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取商品类型列表
        /// </summary>
        public JSShop.Model.DbQueryResultProductType GetPaginProductTypeList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("0EED412E6B3EEA5B2CD741D3696F9FE4", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultProductType)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductType));
        }
        /// <summary>
        /// 获取商品类型列表
        /// </summary>
        public JSShop.Model.DbQueryResultProductTypeList GetPaginProductTypeListByFilter(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("D49780AB1EA1F16C054221C3A27DA7F8", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryResultProductTypeList)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductTypeList));
        }
        /// <summary>
        /// 根据类型ID获取商品类型
        /// </summary>
        public JSShop.Model.Hishop_ProductTypes GetProductTypeByTypeId(System.Int32 typeId)
        {
            wnxd.javascript.json r = this.Run("A1ECDE2FEDC662BA4979B15DD77D6812", typeId);
            return (JSShop.Model.Hishop_ProductTypes)r.TryConvert(typeof(JSShop.Model.Hishop_ProductTypes));
        }
        /// <summary>
        /// 编辑商品类型
        /// </summary>
        public System.Int32 SetProductType(JSShop.Model.Hishop_ProductTypes model)
        {
            wnxd.javascript.json r = this.Run("792EA4824E8CBF5ACD2C3084CCF9E189", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 重生成指定商品Id的静态化文件
        /// </summary>
        public System.String ProductStaticizeRefresh(System.Int32 ProductId)
        {
            wnxd.javascript.json r = this.Run("FACADDB4DACAC41A2C00BFE04C4B1EC2", ProductId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 删除商品属性
        /// </summary>
        public System.Boolean DeleteAttribute(System.String ids)
        {
            wnxd.javascript.json r = this.Run("FD97D0980F12BE0C61BE26C079357034", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据属性ID删除商品属性值
        /// </summary>
        public System.Boolean DeleteAttributeValueByAttributeId(System.String ids)
        {
            wnxd.javascript.json r = this.Run("19618092365EB431447DB8CA65B4CB5E", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据属性值ID删除商品属性值
        /// </summary>
        public System.Boolean DeleteAttributeValueByValueIds(System.String ids)
        {
            wnxd.javascript.json r = this.Run("79622FFB55D84CFDD9773F01D44B026E", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品类型
        /// </summary>
        public System.Boolean DeleteProductType(System.String ids)
        {
            wnxd.javascript.json r = this.Run("CD6EEA5B4A41F9610C43F694465BF898", ids);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品类型与品牌的关联
        /// </summary>
        public System.Boolean DeleteProductTypeBrands(System.Int32 productTypeId)
        {
            wnxd.javascript.json r = this.Run("DFEAFDA84B92DE7EB97F97CE5E61BFA0", productTypeId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取商品属性最大排序
        /// </summary>
        public System.Int32 GetAttributeMaxDisplaySequence()
        {
            wnxd.javascript.json r = this.Run("0F3FA6F7AFCA946200CEF0023347604D");
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 获取商品属性值最大排序
        /// </summary>
        public System.Int32 GetAttributeValueMaxDisplaySequence()
        {
            wnxd.javascript.json r = this.Run("F857F40A2393E024834AD2846F8CDEF4");
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 获取商品属性
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_Attributes> GetAttributesList(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("621E515EC2773B6307729054F4810268", strWhere);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_Attributes>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_Attributes>));
        }
        /// <summary>
        /// 获取商品属性值
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_AttributeValues> GetAttributeValuesList(System.Int32 attributeId)
        {
            wnxd.javascript.json r = this.Run("A83BE08EF6AECFC9AFA401B193990811", attributeId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_AttributeValues>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_AttributeValues>));
        }
        /// <summary>
        /// 获取品牌与商品类型关系
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories> GetBrandCategoriesList(System.Int32 top)
        {
            wnxd.javascript.json r = this.Run("E2F33E2B33A15FA4221127D2DFB997C6", top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>));
        }
        /// <summary>
        /// 设置商品属性
        /// </summary>
        public System.Int32 SetAttribute(JSShop.Model.Hishop_Attributes model)
        {
            wnxd.javascript.json r = this.Run("4CF73B3E2FE9E518CCED56B5CB81FED8", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 编辑商品类型与品牌的关联
        /// </summary>
        public System.Boolean SetProductTypeBrands(System.Int32 productTypeId, System.Int32 brandId)
        {
            wnxd.javascript.json r = this.Run("5F53D6577E79A2F7A68C3714623B3101", productTypeId, brandId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据条件获取商品视图列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetProducts(JSShop.Model.aspnet_Members user, System.Nullable<System.Int32> categoryId, System.String keyWord, System.Int32 feature, System.Int32 pageNumber, System.Int32 maxNum, out System.Int32 total, System.String sort, System.String order)
        {
            wnxd.javascript.json r = this.GetCache(1800, "0A9B502C94564835D5870A3AB68CB42F", user, categoryId, keyWord, feature, pageNumber, maxNum, null, sort, order);
            wnxd.javascript.json outparams = r["OutParams"];
            r = r["Data"];
            total = (System.Int32)outparams[0].TryConvert(typeof(System.Int32));
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取商品评论model
        /// </summary>
        public JSShop.Model.Hishop_ProductReviews GetProductReviewsModel(System.Int64 ReviewId)
        {
            wnxd.javascript.json r = this.Run("4AD9089EFB7459C8CC89A5001C58F223", ReviewId);
            return (JSShop.Model.Hishop_ProductReviews)r.TryConvert(typeof(JSShop.Model.Hishop_ProductReviews));
        }
        /// <summary>
        /// 添加商品评论
        /// </summary>
        public System.Int64 AddProductReviews(JSShop.Model.Hishop_ProductReviews model)
        {
            wnxd.javascript.json r = this.Run("35673670EFFFB0DBE29B31A43A16FD59", model);
            return (System.Int64)r.TryConvert(typeof(System.Int64));
        }
        /// <summary>
        /// 修改商品评论
        /// </summary>
        public System.Boolean UpdateProductReviews(JSShop.Model.Hishop_ProductReviews model)
        {
            wnxd.javascript.json r = this.Run("19D255E2CA10CB739ECB21E796E80319", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品评论
        /// </summary>
        public System.Boolean DeleteProductReviews(System.Int64 ReviewId)
        {
            wnxd.javascript.json r = this.Run("F6865BA1C369E1BC174E7B0A9B748D20", ReviewId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 批量删除商品评论
        /// </summary>
        public System.Boolean DeleteListProductReviews(System.String ReviewIds)
        {
            wnxd.javascript.json r = this.Run("5108E1125FC917A014B92950C3FABD70", ReviewIds);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取商品评论Id
        /// </summary>
        public System.String GetProductIdOfCode(System.String ProductCode)
        {
            wnxd.javascript.json r = this.Run("291FE9BC65D0F0EAD5985AEEA92F3CC5", ProductCode);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 获取商品评论Code
        /// </summary>
        public System.String GetProductCodeOfProductId(System.String ProductId)
        {
            wnxd.javascript.json r = this.Run("E88F433B12CF67F8EA37E27EEBB5F008", ProductId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 根据商品ID获取活动列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_CountDown> GetCountDownListByProductIds(System.String ids)
        {
            wnxd.javascript.json r = this.Run("5E72D35548C7A54A27AECA39EA749E5B", ids);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_CountDown>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_CountDown>));
        }
        /// <summary>
        /// 根据商品ID获取活动列表
        /// </summary>
        public JSShop.Model.DbQueryResultCountDownAndSaleCount GetCountDownAndSaleCountByProductIds(System.String ids)
        {
            wnxd.javascript.json r = this.GetCache(1800, "3C56D0AC0811E353D17140C092E5E70C", ids);
            return (JSShop.Model.DbQueryResultCountDownAndSaleCount)r.TryConvert(typeof(JSShop.Model.DbQueryResultCountDownAndSaleCount));
        }
        /// <summary>
        /// 根据商品编码或商品名称获取商品Id
        /// </summary>
        public System.String GetStringPid(System.String key)
        {
            wnxd.javascript.json r = this.Run("8E0F70B98610EB7588EE1F9AAF70A609", key);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 根据商品分类或商品类型获取商品Id
        /// </summary>
        public System.String GetIntPid(System.String key)
        {
            wnxd.javascript.json r = this.Run("5168D28FFD037F80E8A66F371A11342C", key);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 根据SkuId获取商品列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.VW_Hishop_ProductSKU> GetProductSkuId(System.String SkuId)
        {
            wnxd.javascript.json r = this.Run("4D29F22360175D0CDABF75C7C9A59148", SkuId);
            return (System.Collections.Generic.List<JSShop.Model.VW_Hishop_ProductSKU>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.VW_Hishop_ProductSKU>));
        }
        /// <summary>
        /// 产品品牌类型列表根据类型ID
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypeBrands> BrandListIds(System.Int32 typeId)
        {
            wnxd.javascript.json r = this.Run("034CB7D7F3EF3C749E037E3038D16A34", typeId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypeBrands>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypeBrands>));
        }
        /// <summary>
        /// 产品品牌类型列表根据类型品牌Id
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypeBrands> BrandTypeListIds(System.Int32 BrandId)
        {
            wnxd.javascript.json r = this.Run("1B2F7D06D98708A653350933CF8DA8E8", BrandId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypeBrands>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_ProductTypeBrands>));
        }
        /// <summary>
        /// 图片表新增
        /// </summary>
        public System.Boolean SetImages(JSShop.Model.JS_Images model)
        {
            wnxd.javascript.json r = this.Run("634C57E0441418A6D67549781EBFACD7", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 图片表删除
        /// </summary>
        public System.Boolean DelImages(System.Int32 relationId)
        {
            wnxd.javascript.json r = this.Run("D6F2AFC2B262F3D651548BAFBC99AC32", relationId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据关联ID获取图片列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.JS_Images> GetImageList(System.Int32 relationId, System.Int32 type)
        {
            wnxd.javascript.json r = this.Run("0617864EFA6FD732AA86D299DBE8DB08", relationId, type);
            return (System.Collections.Generic.List<JSShop.Model.JS_Images>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.JS_Images>));
        }
        /// <summary>
        /// 根据Bundlingid获取捆绑销售信息
        /// </summary>
        public JSShop.Model.BundlingInfo GetBundlingInfo(System.Int32 Bundlingid)
        {
            wnxd.javascript.json r = this.Run("BFC2966F64054CF60A3139D921C15387", Bundlingid);
            return (JSShop.Model.BundlingInfo)r.TryConvert(typeof(JSShop.Model.BundlingInfo));
        }
        /// <summary>
        /// 根据商品ID获取所有捆绑销售信息,count为0则获取所有
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.BundlingInfo> GetBundlingList(System.Int32 productId, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "C11729C8B3BF3DDC0587DE9582BB2354", productId, count);
            return (System.Collections.Generic.List<JSShop.Model.BundlingInfo>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.BundlingInfo>));
        }
        /// <summary>
        /// 根据productId获取团购信息
        /// </summary>
        public JSShop.Model.GroupBuyInfo GetProductGroupBuyInfo(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("E447A4F0E354047F196E3605CA7DD98C", productId);
            return (JSShop.Model.GroupBuyInfo)r.TryConvert(typeof(JSShop.Model.GroupBuyInfo));
        }
        /// <summary>
        /// 根据productId获取抢购信息
        /// </summary>
        public JSShop.Model.Hishop_CountDown GetCountDownInfo(System.Int32 productId, System.String skuId)
        {
            wnxd.javascript.json r = this.Run("D02A1A7B91A55D6C29275C11EBD4DDE1", productId, skuId);
            return (JSShop.Model.Hishop_CountDown)r.TryConvert(typeof(JSShop.Model.Hishop_CountDown));
        }
        /// <summary>
        /// 获取首页限时抢购列表(包含今日开始和明日预告)
        /// </summary>
        public JSShop.Model.DbQueryResultCountDownProduct GetCountDownProductList(System.Int32 top)
        {
            wnxd.javascript.json r = this.Run("9ACAA63B2DF3836DBBA60DFB7042036C", top);
            return (JSShop.Model.DbQueryResultCountDownProduct)r.TryConvert(typeof(JSShop.Model.DbQueryResultCountDownProduct));
        }
        public System.Collections.Generic.List<JSShop.Model.CountDownProductInfo> GetPdCountDownProductList(System.Int32 top)
        {
            wnxd.javascript.json r = this.Run("D422C42E80766CADD3FAF948D623A5C3", top);
            return (System.Collections.Generic.List<JSShop.Model.CountDownProductInfo>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.CountDownProductInfo>));
        }
        /// <summary>
        /// 更新抢购信息
        /// </summary>
        public System.Boolean SetCountDownInfo(JSShop.Model.Hishop_CountDown info)
        {
            wnxd.javascript.json r = this.Run("6A4155E3017051F0EDEDF86BDA2106FF", info);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据productId获取商品规格信息
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_ProductSkuItems> GetSkuItemListByProductId(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("1DA7673B21732E571B755E27C7A53044", productId);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_ProductSkuItems>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_ProductSkuItems>));
        }
        /// <summary>
        /// 获取抢购信息
        /// </summary>
        public JSShop.Model.DbQueryCountDown GetCountDownList(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String filter)
        {
            wnxd.javascript.json r = this.Run("B997AF5B19629AFF8A9FBD0441BE1474", pageIndex, pageSize, sortBy, filter);
            return (JSShop.Model.DbQueryCountDown)r.TryConvert(typeof(JSShop.Model.DbQueryCountDown));
        }
        /// <summary>
        /// 根据CountDownId获取抢购信息
        /// </summary>
        public JSShop.Model.Hishop_CountDown GetCountDownInfoByCountDownId(System.Int32 CountDownId)
        {
            wnxd.javascript.json r = this.Run("8A04F288E3F586C01EBAAC8FE65EC988", CountDownId);
            return (JSShop.Model.Hishop_CountDown)r.TryConvert(typeof(JSShop.Model.Hishop_CountDown));
        }
        /// <summary>
        /// 根据查询条件获取抢购视图信息
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_CountDown> GetViewCountDownInfoByCountDownId(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("54E5154306E0466359BCB26F045900CE", strWhere);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_CountDown>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_CountDown>));
        }
        /// <summary>
        /// 根据bundlingID获取捆绑销售产品列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.BundlingItemInfo> GetBundlingItemsByID(System.Int32 bundlingID)
        {
            wnxd.javascript.json r = this.Run("D005B6CBECFA8DA0F33999F62961AA60", bundlingID);
            return (System.Collections.Generic.List<JSShop.Model.BundlingItemInfo>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.BundlingItemInfo>));
        }
        /// <summary>
        /// 删除商品信息
        /// </summary>
        public System.Boolean DeleteProduct(System.String productIds)
        {
            wnxd.javascript.json r = this.Run("B7FE597378C76BB638ED558EB430A0E2", productIds);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新商品信息
        /// </summary>
        public System.Int32 SetProductInfo(JSShop.Model.Hishop_Products model)
        {
            wnxd.javascript.json r = this.Run("144BF016D1848C80CB9C2DE90C23816E", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 删除商品规格信息
        /// </summary>
        public System.Boolean DeleteProductSku(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("CB2F57E429A11CB27E166886FB6EE88D", productId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新商品规格信息
        /// </summary>
        public System.Boolean SetProductSku(JSShop.Model.Hishop_SKUs model)
        {
            wnxd.javascript.json r = this.Run("DE23B2B14999E106B67EE280F48AFC2A", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品规格属性中间表
        /// </summary>
        public System.Boolean DeleteProductSkuItem(System.String skuIds)
        {
            wnxd.javascript.json r = this.Run("531F81CAC1B82C8F115F6002F9E629F2", skuIds);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新商品规格属性中间表
        /// </summary>
        public System.Boolean SetProductSkuItem(JSShop.Model.Hishop_SKUItems model)
        {
            wnxd.javascript.json r = this.Run("6358EF364EC70B37F3FBBC19D8793158", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品会员价信息
        /// </summary>
        public System.Boolean DeleteSKUMemberPrice(System.String skuId)
        {
            wnxd.javascript.json r = this.Run("A621072E8AE45FBCF6AC485F0C66014F", skuId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新商品会员价信息
        /// </summary>
        public System.Boolean SetSKUMemerPrice(JSShop.Model.Hishop_SKUMemberPrice model)
        {
            wnxd.javascript.json r = this.Run("6306156B4930BA8092186B6F5E4937C8", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 删除商品标签
        /// </summary>
        public System.Boolean DeleteProductTag(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("28A45D629CEC71799D513059389852CE", productId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取商品标签分页信息
        /// </summary>
        public JSShop.Model.DbQueryResultProductTag GetPaginProductTag(System.Int32 page, System.Int32 size, System.String sort, System.String filter)
        {
            wnxd.javascript.json r = this.Run("2AD7F14068F1BBBDDA59E7AC8C8DF8A4", page, size, sort, filter);
            return (JSShop.Model.DbQueryResultProductTag)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductTag));
        }
        /// <summary>
        /// 更新商品标签
        /// </summary>
        public System.Boolean SetProductTag(JSShop.Model.Hishop_ProductTag model)
        {
            wnxd.javascript.json r = this.Run("ACC6202182994957A5E6BBE1D082A011", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 编辑商品标签
        /// </summary>
        public System.Int32 SetTag(JSShop.Model.Hishop_Tags model)
        {
            wnxd.javascript.json r = this.Run("657BD009CE64B78B0D6C41FDD8F5A753", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 删除商品标签
        /// </summary>
        public System.Boolean DelTag(System.String tagId)
        {
            wnxd.javascript.json r = this.Run("6614355B57FB1A7C0FF869A176E04764", tagId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取商品标签
        /// </summary>
        public JSShop.Model.Hishop_Tags GetTagModel(System.Int32 tagId)
        {
            wnxd.javascript.json r = this.Run("3BAF54B79B9704E1CD9C9E6DFF96A451", tagId);
            return (JSShop.Model.Hishop_Tags)r.TryConvert(typeof(JSShop.Model.Hishop_Tags));
        }
        /// <summary>
        /// 根据商品ID获取商品信息
        /// </summary>
        public System.String GetDistTag(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("6952D47F95CBB1D2FCD5182D12381A9B", productId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 删除抢购信息
        /// </summary>
        public System.Boolean RemoveCountDown(System.Int32 countDownId)
        {
            wnxd.javascript.json r = this.Run("9C24A6F04A52BE519AA08DED4B0C9DF2", countDownId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据bundlingID删除捆绑销售
        /// </summary>
        public System.Boolean DeleteBundlingById(System.String bundlingIds)
        {
            wnxd.javascript.json r = this.Run("7B34EDA7C0FD92DAB75D8FFE1FA2B47A", bundlingIds);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据bundlingID删除捆绑商品信息
        /// </summary>
        public System.Boolean DeleteBundlingItemsById(System.Int32 bundlingId)
        {
            wnxd.javascript.json r = this.Run("38339E882A462AFC1C060F67E6D0327D", bundlingId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据ActivityId删除促销活动
        /// </summary>
        public System.Boolean DeletePromotionById(System.String activityIds)
        {
            wnxd.javascript.json r = this.Run("0F72C0646560EB9B57BBC2F09004A02C", activityIds);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据ActivityId删除促销活动
        /// </summary>
        public System.Boolean DeletePromotionProductsByActivityId(System.Int32 activityId)
        {
            wnxd.javascript.json r = this.Run("FB81247A90E26658AD897E05730BEC84", activityId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据ActivityId获取对应商品
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_PromotionProducts> GetProductSkuByActivityId(System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("DB434AB340F62888E4365A79B5DD5F4B", strWhere);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_PromotionProducts>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_PromotionProducts>));
        }
        /// <summary>
        /// 根据ActivityId删除促销活动
        /// </summary>
        public System.Boolean DeleteHishop_PromotionMemberGradeByActivityId(System.Int32 activityId)
        {
            wnxd.javascript.json r = this.Run("6246DFAD3B7DB2FC0C0B81BDCB25290E", activityId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新绑定商品活动
        /// </summary>
        public System.Int32 SetBundlingProductInfo(JSShop.Model.Hishop_BundlingProducts model)
        {
            wnxd.javascript.json r = this.Run("E7BFA6F8436A8B5552B7C00EB2BCA034", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 更新绑定商品
        /// </summary>
        public System.Boolean SetBundlingProductItemInfo(JSShop.Model.Hishop_BundlingProductItems model)
        {
            wnxd.javascript.json r = this.Run("E2C6FB285319CB3DE1C0AF81893114ED", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新促销活动
        /// </summary>
        public System.Int32 SetPromotionInfo(JSShop.Model.Hishop_Promotions model)
        {
            wnxd.javascript.json r = this.Run("A76D1F4524A933523A5335806142F44C", model);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 更新促销商品
        /// </summary>
        public System.Boolean SetPromotionProductInfo(JSShop.Model.Hishop_PromotionProducts model)
        {
            wnxd.javascript.json r = this.Run("E5BC946190040FA5E38564A0380CF10A", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 更新促销商品活动针对的客户
        /// </summary>
        public System.Boolean SetPromotionMemberGradeInfo(JSShop.Model.Hishop_PromotionMemberGrades model)
        {
            wnxd.javascript.json r = this.Run("B581A7F1B76D54BA39792564137AE2A8", model);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 根据促销活动ID获取活动信息
        /// </summary>
        public JSShop.Model.vw_Hishop_Promotions GetPromotionByActivityId(System.Int32 activityId)
        {
            wnxd.javascript.json r = this.Run("A27FC9EEEBB503D30F6CF92B12889AE2", activityId);
            return (JSShop.Model.vw_Hishop_Promotions)r.TryConvert(typeof(JSShop.Model.vw_Hishop_Promotions));
        }
        /// <summary>
        /// 获取活动信息
        /// </summary>
        public JSShop.Model.DbQueryResultPromotions GetPromotionPagingData(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("899E00E19C2905E3A111ACBF8C7EDAE2", pageIndex, pageSize, sortBy, strWhere);
            return (JSShop.Model.DbQueryResultPromotions)r.TryConvert(typeof(JSShop.Model.DbQueryResultPromotions));
        }
        /// <summary>
        /// 获取运费信息
        /// </summary>
        public JSShop.Model.Hishop_ShippingTemplates GetShippingTemplatesModel()
        {
            wnxd.javascript.json r = this.Run("F8BBAB850554822539FCD02C04CA46E7");
            return (JSShop.Model.Hishop_ShippingTemplates)r.TryConvert(typeof(JSShop.Model.Hishop_ShippingTemplates));
        }
        /// <summary>
        /// 根据绑定ID获取商品绑定信息
        /// </summary>
        public JSShop.Model.vw_Hishop_BundlingProducts GetBundlingProductModel(System.Int32 bundlingId)
        {
            wnxd.javascript.json r = this.Run("7898B53BAA2231CFB60D63FF220742CB", bundlingId);
            return (JSShop.Model.vw_Hishop_BundlingProducts)r.TryConvert(typeof(JSShop.Model.vw_Hishop_BundlingProducts));
        }
        /// <summary>
        /// 获取绑定商品信息
        /// </summary>
        public JSShop.Model.DbQueryResultBundlingProducts GetPaginBundlingProductData(System.Int32 pageIndex, System.Int32 pageSize, System.String sortBy, System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("39F6B940096930AA017847201461BE46", pageIndex, pageSize, sortBy, strWhere);
            return (JSShop.Model.DbQueryResultBundlingProducts)r.TryConvert(typeof(JSShop.Model.DbQueryResultBundlingProducts));
        }
        /// <summary>
        /// 根据绑定ID获取绑定商品信息
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BundlingProductItems> GetBundlingProductItemsByBundlingId(System.Int32 bundlingId)
        {
            wnxd.javascript.json r = this.Run("290D7E53E6644959F2287A3B88DDC72E", bundlingId);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BundlingProductItems>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BundlingProductItems>));
        }
        /// <summary>
        /// 读取商品列表视图数据
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetVistiedProducts(JSShop.Model.aspnet_Members usermember, System.Collections.Generic.IList<System.Int32> productIds)
        {
            wnxd.javascript.json r = this.GetCache(1800, "BA62675AB7BE659DAD540DABCFA06F59", usermember, productIds);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取收藏
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetFavorites(JSShop.Model.aspnet_Members usermember, System.Int32 top = 0)
        {
            wnxd.javascript.json r = this.Run("70DB4F451C9203399BFE52F202A80EBE", usermember, top);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取用户收藏商品列表
        /// </summary>
        public System.Collections.Generic.List<System.Int32> GetFavoriteList(JSShop.Model.aspnet_Members usermember, System.Int32 top = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "EACA923A3524FA1F5F1E00BDDE70AC4C", usermember, top);
            return (System.Collections.Generic.List<System.Int32>)r.TryConvert(typeof(System.Collections.Generic.List<System.Int32>));
        }
        /// <summary>
        /// 猜你喜欢
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetCaiNiXiHuan(JSShop.Model.aspnet_Members member, System.Collections.Generic.IList<System.Int32> products, System.Int32 count)
        {
            wnxd.javascript.json r = this.GetCache(1800, "436A5DDE2A92D47A5E599C14724BACE0", member, products, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取相似商品和sku
        /// </summary>
        public JSShop.Model.Hishop_SKUs GetProductAndSku(JSShop.Model.aspnet_Members member, System.Int32 productId, System.String options)
        {
            wnxd.javascript.json r = this.GetCache(1800, "C28047B266C96CCA422DE7A9725C665C", member, productId, options);
            return (JSShop.Model.Hishop_SKUs)r.TryConvert(typeof(JSShop.Model.Hishop_SKUs));
        }
        /// <summary>
        /// 程序模拟存储过程ss_ShoppingCart_GetItemInfo
        /// </summary>
        public JSShop.Model.ShoppingCartItemInfo GetCartItemInfo(JSShop.Model.aspnet_Members member, System.String skuId, System.Int32 quantity, System.Nullable<System.Int32> activityId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "988502A2F7508AD8EA1267FA27D305CD", member, skuId, quantity, activityId);
            return (JSShop.Model.ShoppingCartItemInfo)r.TryConvert(typeof(JSShop.Model.ShoppingCartItemInfo));
        }
        /// <summary>
        /// 直接通过skuid获取库存
        /// </summary>
        public System.Int32 GetSkuStock(System.String skuId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "63306B4D0D56647D972CD649C9B59BE0", skuId);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 根据 SkuId 列表读重量和价格
        /// </summary>
        public System.Collections.Generic.Dictionary<System.String, System.Decimal> GetCostPriceForItems(System.Collections.Generic.IList<System.String> skuIds)
        {
            wnxd.javascript.json r = this.GetCache(1800, "9294CFC76AF2DE4A6CDEB775E5EDCFF7", skuIds);
            return (System.Collections.Generic.Dictionary<System.String, System.Decimal>)r.TryConvert(typeof(System.Collections.Generic.Dictionary<System.String, System.Decimal>));
        }
        public System.Collections.Generic.List<JSShop.Model.Hishop_SKUItems> GetUnUpUnUpsellingSkus(System.Int32 productId, System.Int32 attributeId, System.Int32 valueId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "A58ADDDB4E685C9562559C9F91660B92", productId, attributeId, valueId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_SKUItems>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_SKUItems>));
        }
        /// <summary>
        /// 获取指定活动类型的信息
        /// </summary>
        public JSShop.Model.Hishop_Promotions GetSendPromotion(System.Int32 gradeId, System.Decimal amount, JSShop.Enum.PromoteType promoteType)
        {
            wnxd.javascript.json r = this.GetCache(1800, "596BF1A931DE4BC506B6CC822B09F2BD", gradeId, amount, promoteType);
            return (JSShop.Model.Hishop_Promotions)r.TryConvert(typeof(JSShop.Model.Hishop_Promotions));
        }
        /// <summary>
        /// 根据购买商品获取符合条件的所有活动
        /// </summary>
        public JSShop.Model.Hishop_Promotions[] GetSendPromotions(System.Int32 gradeId, System.Collections.Generic.IList<JSShop.Model.ShoppingCartItemInfo> lineItems, JSShop.Enum.PromoteType promoteType)
        {
            wnxd.javascript.json r = this.Run("8522280A7C12504F6CE61E6560EB5F23", gradeId, lineItems, promoteType);
            return (JSShop.Model.Hishop_Promotions[])r.TryConvert(typeof(JSShop.Model.Hishop_Promotions[]));
        }
        /// <summary>
        /// 根据购买商品获取符合条件的所有活动
        /// </summary>
        public JSShop.Model.Hishop_Promotions[] GetReducedPromotions(System.Int32 gradeId, System.Collections.Generic.IList<JSShop.Model.ShoppingCartItemInfo> lineItems, out System.Decimal reducedAmount)
        {
            wnxd.javascript.json r = this.Run("8AB502E425D9ECF64AB02DC52D5E8535", gradeId, lineItems, null);
            wnxd.javascript.json outparams = r["OutParams"];
            r = r["Data"];
            reducedAmount = (System.Decimal)outparams[0].TryConvert(typeof(System.Decimal));
            return (JSShop.Model.Hishop_Promotions[])r.TryConvert(typeof(JSShop.Model.Hishop_Promotions[]));
        }
        /// <summary>
        /// 根据最符合条件的活动
        /// </summary>
        public JSShop.Model.Hishop_Promotions GetReducedPromotion(System.Int32 gradeId, System.Decimal amount, System.Int32 quantity, out System.Decimal reducedAmount)
        {
            wnxd.javascript.json r = this.Run("C929FD75563A2A74CE9F26CC50AF03AB", gradeId, amount, quantity, null);
            wnxd.javascript.json outparams = r["OutParams"];
            r = r["Data"];
            reducedAmount = (System.Decimal)outparams[0].TryConvert(typeof(System.Decimal));
            return (JSShop.Model.Hishop_Promotions)r.TryConvert(typeof(JSShop.Model.Hishop_Promotions));
        }
        /// <summary>
        /// 根据商品id获取促销信息
        /// </summary>
        public JSShop.Model.Hishop_Promotions GetPromotionByPid(System.Int32 productId, System.Int32 gradeId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "9ADBECF49158949C02816B0DB113EB65", productId, gradeId);
            return (JSShop.Model.Hishop_Promotions)r.TryConvert(typeof(JSShop.Model.Hishop_Promotions));
        }
        /// <summary>
        /// 根据商品价格获取包邮信息
        /// </summary>
        public JSShop.Model.Hishop_Promotions GetSentFreight(System.Decimal amount)
        {
            wnxd.javascript.json r = this.GetCache(1800, "4C8AE00560C8C1A5536B66BCDFD272FF", amount);
            return (JSShop.Model.Hishop_Promotions)r.TryConvert(typeof(JSShop.Model.Hishop_Promotions));
        }
        /// <summary>
        /// 获取指定分类下的随机商品,count为0则获取该分类下所有商品
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetRandomProductByCategoryId(System.Int32 categoryId, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.GetCache(1800, "672A8FBFC1386C857628BE28ADE08BC3", categoryId, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetHeatProduct(System.Int32 productId, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.Run("49E0C803820BC85AE59983D39FC0CD08", productId, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取指定一级分类下的条件排序（OrderBy [字段] [desc/asc]）商品,count为0则获取该分类下所有商品
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetOrderByProductByCategoryId(System.Int32 categoryId, System.String OrderBy, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.Run("E5BADF11A15F4771CAEC474A497E5A53", categoryId, OrderBy, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取指定一级分类下的条件排序（OrderBy [字段] [desc/asc]）商品,count为0则获取该分类下所有商品
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetOrderByProductByOneCategoryId(System.Int32 categoryId, System.String OrderBy, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.Run("1C0A48EE2CDFE5FCC2A48B2F69A8EC8E", categoryId, OrderBy, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取指定二级分类下的条件排序（OrderBy [字段] [desc/asc]）商品,count为0则获取该分类下所有商品
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList> GetOrderByProductByTowCategoryId(System.Int32 categoryId, System.String OrderBy, System.Int32 count = 0)
        {
            wnxd.javascript.json r = this.Run("FCE8E43AA0BEB8E1365DE6E94E9BA93B", categoryId, OrderBy, count);
            return (System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.vw_Hishop_BrowseProductList>));
        }
        /// <summary>
        /// 获取指定分类下的按条件搜索的商品
        /// </summary>
        public JSShop.Model.DbQueryResult GetSearchsProductByCategoryId(JSShop.Model.ProductBrowseQuery query)
        {
            wnxd.javascript.json r = this.Run("A155723554C44A7BFEEA09B409589EF6", query);
            return (JSShop.Model.DbQueryResult)r.TryConvert(typeof(JSShop.Model.DbQueryResult));
        }
        /// <summary>
        /// 按照品牌Id获取品牌信息
        /// </summary>
        public JSShop.Model.Hishop_BrandCategories GetBrandInfo(System.Int32 BrandId)
        {
            wnxd.javascript.json r = this.Run("D0AB24ABE425258ADEB616C79A8B15BD", BrandId);
            return (JSShop.Model.Hishop_BrandCategories)r.TryConvert(typeof(JSShop.Model.Hishop_BrandCategories));
        }
        /// <summary>
        /// 获取品牌列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories> GetBrandList(System.Int32 top)
        {
            wnxd.javascript.json r = this.Run("F7A77131CB06C557B1408EA8E7BF64CB", top);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_BrandCategories>));
        }
        /// <summary>
        /// 获取商品id获取商品信息
        /// </summary>
        public JSShop.Model.Hishop_Products GetProductInfo(System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "609AF9B6405556DC3B222A4D242D1511", productId);
            return (JSShop.Model.Hishop_Products)r.TryConvert(typeof(JSShop.Model.Hishop_Products));
        }
        /// <summary>
        /// 根据orderid获取商品信息
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_OrderItems> GetItemsByOrderId(System.String OrderId)
        {
            wnxd.javascript.json r = this.Run("F1C16E8908EA79774C907854545D775C", OrderId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_OrderItems>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_OrderItems>));
        }
        public System.Int32 CountDownOrderCount(System.Int32 productId, System.Collections.Generic.IList<System.String> orderIds)
        {
            wnxd.javascript.json r = this.Run("1E6AC3621B2C59B376F51B2197B56AB2", productId, orderIds);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 获取商品被收藏数目
        /// </summary>
        public System.Int32 GetFavoriteCount(System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "91545DB7E4C99EEAD3E7B32F563BE520", productId);
            return (System.Int32)r.TryConvert(typeof(System.Int32));
        }
        /// <summary>
        /// 添加或者修改收藏
        /// </summary>
        public System.String SetFavorite(JSShop.Model.Hishop_Favorite model)
        {
            wnxd.javascript.json r = this.Run("FA8D3C54611D2418BB4379CF3D9F6183", model);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 删除收藏
        /// </summary>
        public System.String DelFavorite(JSShop.Model.Hishop_Favorite model)
        {
            wnxd.javascript.json r = this.Run("E2CD58DC5161F25417251184DDC1D2FD", model);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 根据UserId productid获得favorite model
        /// </summary>
        public JSShop.Model.Hishop_Favorite GetFavoriteByProductIdAndUseId(System.Int32 ProductId, System.Int32 UserId)
        {
            wnxd.javascript.json r = this.Run("497677F8449D6552A16140E62AD2567B", ProductId, UserId);
            return (JSShop.Model.Hishop_Favorite)r.TryConvert(typeof(JSShop.Model.Hishop_Favorite));
        }
        /// <summary>
        /// 获取商品的视图数据
        /// </summary>
        public JSShop.Model.vw_Hishop_BrowseProductList GetBrowseProductView(JSShop.Model.aspnet_Members member, System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "0E9371F005B028BC6708BC19F9646125", member, productId);
            return (JSShop.Model.vw_Hishop_BrowseProductList)r.TryConvert(typeof(JSShop.Model.vw_Hishop_BrowseProductList));
        }
        /// <summary>
        /// 获取商品Sku列表
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_SKUs> GetSkuList(JSShop.Model.aspnet_Members member, System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "E0A6FCFBE13E81F4B9817C91C356F603", member, productId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_SKUs>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_SKUs>));
        }
        /// <summary>
        /// 获取商品所有相关联Sku信息
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.SKUItemInfo> GetSKUItemList(System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "065AFFBC20D379A627A8C2028F4A52F3", productId);
            return (System.Collections.Generic.List<JSShop.Model.SKUItemInfo>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.SKUItemInfo>));
        }
        /// <summary>
        /// 获取商品评论
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_ProductReviews> GetProductReviews(System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "3DF3036DDFCD57B5FAA06E03A97CB55B", productId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_ProductReviews>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_ProductReviews>));
        }
        /// <summary>
        /// 添加用户评论
        /// </summary>
        public System.Int64 AddUserReviews(JSShop.Model.Hishop_ProductReviews model)
        {
            wnxd.javascript.json r = this.Run("98FFF180B165F9F32BD8ADCEB10A2155", model);
            return (System.Int64)r.TryConvert(typeof(System.Int64));
        }
        /// <summary>
        /// 获取商品评论列表
        /// </summary>
        public JSShop.Model.DbQueryResultProductReviews GetProductReviews(System.Int32 userId, System.Int32 productId, System.Int32 pageIndex, System.Int32 pageSize, System.String strWhere)
        {
            wnxd.javascript.json r = this.Run("DCC75F9959D4CC1D5204A97742B97B9A", userId, productId, pageIndex, pageSize, strWhere);
            return (JSShop.Model.DbQueryResultProductReviews)r.TryConvert(typeof(JSShop.Model.DbQueryResultProductReviews));
        }
        /// <summary>
        /// 获取评论分数
        /// </summary>
        public System.String ReviewScore(System.Int32 productId)
        {
            wnxd.javascript.json r = this.Run("042BA0F6C68369F0A4A9EF457EDB6D89", productId);
            return (System.String)r.TryConvert(typeof(System.String));
        }
        /// <summary>
        /// 判断是否评论过
        /// </summary>
        public System.Boolean ExsistReviews(System.Int32 productId, System.Int32 userId, System.String orderId)
        {
            wnxd.javascript.json r = this.Run("3D10B6C836C67156245A268118791EF9", productId, userId, orderId);
            return (System.Boolean)r.TryConvert(typeof(System.Boolean));
        }
        /// <summary>
        /// 获取商品咨询
        /// </summary>
        public System.Collections.Generic.List<JSShop.Model.Hishop_ProductConsultations> GetProductConsultations(System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "7CB35466C0B790D574C2C5A84ED00E9E", productId);
            return (System.Collections.Generic.List<JSShop.Model.Hishop_ProductConsultations>)r.TryConvert(typeof(System.Collections.Generic.List<JSShop.Model.Hishop_ProductConsultations>));
        }
        /// <summary>
        /// 获取商品Model
        /// </summary>
        public JSShop.Model.Hishop_Products GetProductsModel(System.Int32 productId)
        {
            wnxd.javascript.json r = this.GetCache(1800, "7E74EA729FB9C14F99BC973174CE5FCA", productId);
            return (JSShop.Model.Hishop_Products)r.TryConvert(typeof(JSShop.Model.Hishop_Products));
        }
    }
}